var gulp = require("gulp");
const gulp_uglify = require("gulp-uglify");
const gulp_minify = require("gulp-minify-css");
const gulp_imagemin = require("gulp-imagemin");
const gulp_babel = require("gulp-babel");


gulp.task("my_uglify", function() {
	gulp.src("js/index.js").pipe(gulp_uglify("")).pipe(gulp.dest("D:/Nodejs/js"));
});

gulp.task("my_mincss",function(){
	gulp.src("css/**/*").pipe(gulp_minify()).pipe(gulp.dest("D:/Nodejs/css"));
});

gulp.task("my_imgmin",function(){
	gulp.src ("img/**/*").pipe(gulp_imagemin()).pipe(gulp.dest("D:/Nodejs/img"));
});


gulp.task("my_bable",function(){
	gulp.src("js/index.js").pipe(gulp_babel({presets: ['es2015']})).pipe(gulp.dest("D:/Nodejs/js"));
});